package com.zyzd.custom;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.zyzd.custom.module.AttributeDescViewActivity;
import com.zyzd.custom.module.CardbagActivity;
import com.zyzd.custom.module.ProtractorViewActivity;
import com.zyzd.custom.module.TurnplateActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void testTurnplateView(View view) {
        skipActivity(TurnplateActivity.class);
    }

    public void testProtractorView(View view) {
        skipActivity(ProtractorViewActivity.class);
    }

    public void testCardBagView(View view) {
        skipActivity(CardbagActivity.class);
    }

    private void skipActivity(Class clazz) {
        startActivity(new Intent(this, clazz));
    }


    public void testAutoLinefeedView(View view) {
        skipActivity(AttributeDescViewActivity.class);
    }
}
